<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
    .nw {
        float: left;
        width: 150px;
    }
    .cls {
        clear: both;
    }
    .field{
        padding: 5px;
        font-size: 14px;
        
    }
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">增加字段</div>

</div>
<div class="bjui-pageContent">
    <div class="field">
        <form action="{:U('Model/addfieldset')}" method="post" data-toggle="validate">
            <table class="table table-bordered table-hover table-striped table-top">
                <thead></thead>
                <tbody>
                    <tr>
                        <td>表单提示文字：</td>
                        <td>
                            <input name="itemname" ></td>
                    </tr>
                    <tr>
                        <td>字段名称：</td>
                        <td>
                            <input name="fieldname" >只能用英文字母或数字，数据表的真实字段名</td>
                    </tr>
                    <tr>
                        <td>数据类型：</td>
                        <td bgcolor="#FFFFFF">
                            <div class="nw">
                                <input type="radio" checked="1" value="text" id="dtype1" name="dtype" class="np">单行文本(varchar)</div>
                            <div class="nw">
                                <input type="radio" value="textchar" id="dtype2" name="dtype" class="np">单行文本(char)</div>
                            <div class="nw">
                                <input type="radio" value="multitext" id="dtype3" name="dtype" class="np">多行文本</div>
                            <div class="nw">
                                <input type="radio" value="htmltext" id="dtype4" name="dtype" class="np">HTML文本</div>
                            <br class="cls">
                            <div class="nw">
                                <input type="radio" value="textdata" id="dtype5" name="dtype" class="np">textarea区域</div>
                            <div class="nw">
                                <input type="radio" value="int" id="dtype6" name="dtype" class="np">整数类型</div>
                            <div class="nw">
                                <input type="radio" value="float" id="dtype7" name="dtype" class="np">小数类型</div>
                            <div class="nw">
                                <input type="radio" value="datetime" id="dtype8" name="dtype" class="np">时间类型</div>
                            <br class="cls">
                            <div class="nw">
                                <input type="radio" value="img" id="dtype9" name="dtype" class="np">单个图片</div>
                            <div class="nw">
                                <input type="radio" value="imgfile" id="dtype10" name="dtype" class="np">多图片上传</div>
                            <div class="nw">
                                <input type="radio" value="media" id="dtype11" name="dtype" class="np">多媒体文件</div>
                            <div class="nw">
                                <input type="radio" value="addon" id="dtype12" name="dtype" class="np">文件类型</div>
                            <br class="cls">
                            <div class="nw">
                                <input type="radio" value="select" id="dtype13" name="dtype" class="np">使用option下拉框</div>
                            <div class="nw">
                                <input type="radio" value="radio" id="dtype14" name="dtype" class="np">使用radio选项卡</div>
                            <div class="nw">
                                <input type="radio" value="checkbox" id="dtype15" name="dtype" class="np">Checkbox多选框</div>
                            <div class="nw">
                                <input type="radio" value="color" id="dtype16" name="dtype" class="np">颜色选取</div>
                        </td>
                    </tr>
                    <tr>
                        <td>默认值：</td>
                        <td>
                            <textarea style="width:70%;height:60px" id="vdefault" type="text" name="vdefault"></textarea>
                            <br>
                            如果定义数据类型为select、radio、checkbox时，此处填写被选择的项目(用“,”分开，如“男,女,人妖”)。
                        </td>
                    </tr>
                    <tr>
                        <td>最大长度：</td>
                        <td>
                            <input type="text" style="width:80px;" value="250" class="pubinputs" id="maxlength" name="maxlength">文本数据必须填写，大于255为text类型</td>
                    </tr>
                    <tr>
                        <td>排序：</td>
                        <td>
                            <input type="text" style="width:80px;" class="pubinputs" id="sort" name="sort" value="1">通过排序改变输入项顺序</td>
                    </tr>
                    <input type="hidden" name="model_id" value="{$model_id}">
                </tbody>
            </table>
        </form>
    </div>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close" data-icon="close">关闭</button>
        </li>
        <li>
            <button data-icon="save" class="btn btn-default" type="submit">保存</button>
        </li>
    </ul>
</div>